#include "entt/entt.hpp"
#include <iostream>
#include <string>



int main()
{

	entt::registry rg;
	
	{
		entt::entity e = rg.create();
		rg.emplace_or_replace<int>(e, 22);
	}
	
	{
		entt::entity e = rg.create();
		rg.emplace_or_replace<int>(e, 22);
	}

	auto _v1 = rg.view<int>();

	for (auto _e : _v1)
	{
		auto i = rg.get<int>(_e);
		std::cout << i << std::endl;
	}
	
	rg.clear();
	return 0;
}